<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<div id="main">
		<div class="sidebar">
			<ul>
				<li class="hd"><h2><s:property value="leftTopChannel.channelName"/></h2></li>
			
				<s:iterator var="channel" value="channelsList" status="st">
			 	<s:if test="#channel.channelId.equals(newsTopChannel.channelId)">
				    <li class="on">
				<a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="#channel.channelId"/>"><s:property value="#channel.channelName"/></a>
				</li>        
				 </s:if>
				 <s:else>
				<li>
				<a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="#channel.channelId"/>"><s:property value="#channel.channelName"/></a>
				</li>
				</s:else>
				</s:iterator>	
			</ul>
		</div>
		<div class="subcon">
			<div class="listhd">
				             <s:property value='newsTopChannel.channelName'/>
			
			
			</div>
			<div class="listbd">
                
                <TABLE border="0" cellspacing="5" cellpadding="0">
                    <TBODY>
                    <TR>
                <s:iterator var="img" value="newsList" status="st">
                <s:if test="#st.index<4">
                        <TD valign="top">
                        <TABLE bordercolorlight="#cdcdcd" bordercolordark="#ffffff" 
                        border="1" cellspacing="0" cellpadding="0">
                          <TBODY>
                          <TR>
                          <td>
		<div class="imgnew">
		<div class="imgnewtop" >
                          <A title="<s:property value="#img.contentName"/>" href="<%=path %>/yc/news/ycimgnews!imgnews.do?contentId=<s:property value="#img.contentId"/>&channelId=<s:property value="#img.channelId"/>" 
                              ><IMG class="img" width="115" height="100" src="<%=path %>/yc/channel/ycchannel!image.do?rid=<s:property value="#img.resourceRid"/>" 
                              border="0"></A></div>
                          <A title="<s:property value="#img.contentName"/>" href="<%=path %>/yc/news/ycimgnews!imgnews.do?contentId=<s:property value="#img.contentId"/>&channelId=<s:property value="#img.channelId"/>" 
                              ><s:property value="#img.contentName"/></A>
                          </div>
                          </td>                            
                            </TR>
                            </TBODY></TABLE></TD>
                
                </s:if>
                </s:iterator>
                    </TR>
                    <TR>
                <s:iterator var="img" value="newsList" status="st">
                <s:if test="#st.index>3&&#st.index<8">
                        <TD valign="top">
                        <TABLE bordercolorlight="#cdcdcd" bordercolordark="#ffffff" 
                        border="1" cellspacing="0" cellpadding="0">
                          <TBODY>
                          <TR>
                          <td>
                          <div class="imgnew">
		<div class="imgnewtop">
                          <A title="<s:property value="#img.contentName"/>" href="<%=path %>/yc/news/ycimgnews!imgnews.do?contentId=<s:property value="#img.contentId"/>&channelId=<s:property value="#img.channelId"/>" 
                              ><IMG class="img" width="115" height="100" src="<%=path %>/yc/channel/ycchannel!image.do?rid=<s:property value="#img.resourceRid"/>" 
                              border="0"></A></div>
                          <A title="<s:property value="#img.contentName"/>" href="<%=path %>/yc/news/ycimgnews!imgnews.do?contentId=<s:property value="#img.contentId"/>&channelId=<s:property value="#img.channelId"/>" 
                              ><s:property value="#img.contentName"/></A>
                          </div>
                          </td>
                              </TBODY></TABLE></TD>
                
                </s:if>
                </s:iterator>
                    </TR>
                    
                    </TBODY></TABLE>
			</div>
			<div class="page">
				
				<ul>
				<li>共查询出&nbsp;<s:property value="pageCtrl.resultCount"/>条&nbsp;</li>
				<li>每页<span style="color:red" ><s:property value="pageCtrl.pageSize"/></span>条</li>&nbsp;&nbsp;
				<li>页次：第<span style="color:red" ><s:property value="pageCtrl.pageNo+1"/></span>页&nbsp;&nbsp;</li>
				<li>共<span style="color:red"><s:property value="pageCtrl.pageCount"/></span>页&nbsp;</li>
			          
			          <s:if test="pageCtrl.pageNo==0">
			          	<li>
			          首页&nbsp;&nbsp;
			          <li>上页&nbsp;&nbsp;</li>
			          </s:if>
			          <s:else>
			          
			                <li><a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="newsTopChannel.channelId"/>"><span style="color:red">首页</span></a>&nbsp;&nbsp;</li>
			                <li><a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="newsTopChannel.channelId"/>&pageNo=<s:property value="pageCtrl.pageNo-1"/>"><span style="color:red">上页</span></a>&nbsp;&nbsp;</li>
			          </s:else>
			          <s:if test="pageCtrl.pageCount==0||pageCtrl.pageNo+1==pageCtrl.pageCount">
			         	<li> 下页&nbsp;&nbsp;</li>
			         	<li>末页&nbsp;&nbsp;</li>
			          </s:if>
			          <s:else>
			         <li> <a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="newsTopChannel.channelId"/>&pageNo=<s:property value="pageCtrl.pageNo+1"/>"><span style="color:red">下页</span></a>&nbsp;&nbsp;</li>
			         <li> <a href="<%=path%>/yc/channel/ycchannel!channel.do?channelId=<s:property value="newsTopChannel.channelId"/>&pageNo=<s:property value="pageCtrl.pageCount-1"/>"><span style="color:red">末页</span></a>&nbsp;&nbsp;</li>
			          </s:else>
				
				</ul>
			
			</div>
		</div>
	</div>
